package com.ruoyi.vote.admin.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.vote.admin.domain.VoteSign;
import com.ruoyi.vote.admin.domain.WxUserSub;
import com.ruoyi.vote.admin.domain.vo.WxUserSubVo;
import com.ruoyi.vote.admin.domain.bo.WxUserSubBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;
import liquibase.pro.packaged.U;
import liquibase.pro.packaged.W;

import java.util.Collection;
import java.util.List;

/**
 * 用户订阅Service接口
 *
 * @author 筑巢
 * @date 2023-07-25
 */
public interface IWxUserSubService extends IService<WxUserSub> {

    /**
     * 条件获取对应的订阅人
     * @param queryWrapper
     * @return
     */
    List<WxUserSubVo> queryQw(QueryWrapper<WxUserSub> queryWrapper);


    /**
     * 查询用户订阅列表
     */
    TableDataInfo<WxUserSubVo> queryPageList(WxUserSubBo bo, PageQuery pageQuery);

    /**
     * 新增用户订阅
     */
    Boolean insertByBo(WxUserSubBo bo);

    /**
     * 校验并批量删除用户订阅信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
